package com.jerome.fs.server.aggregation.config;

public class AggregationConfig {
    /**
     * httpPort 默认4567
     */
    private int port = 4567;
    /**
     * 默认节点运行
     * 可选值 master 和 slave
     */
    private String mode = "master";
    /**
     * 主节点地址信息
     */
    private String masterAddress = "http://127.0.0.1:4567";
    /**
     * 日志目录
     * 默认当前运行目录下的logs
     */
    private String logPath = "./logs";
    /**
     * 日志名称
     */
    private String logName = "/Aggregation.log";
    /**
     * meta data 数据缓存 类似 redis rdb
     */
    private String DBFName = "/AggregationDBF";
    /**
     * 缓存过期时间
     * 默认30秒
     */
    private int expiringTime = 30 * 1000;
    /**
     * ringBuffer 大小用于slave 增量同步使用
     */
    private int ringBufferSize = 5000;
    /**
     * 缓存过期时间
     * 默认30秒
     */
    private int heartbeatExpiringTime = 15 * 1000;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getLogPath() {
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }

    public String getLogName() {
        return logName;
    }

    public void setLogName(String logName) {
        this.logName = logName;
    }

    public String getDBFName() {
        return DBFName;
    }

    public void setDBFName(String DBFName) {
        this.DBFName = DBFName;
    }

    public String getMasterAddress() {
        return masterAddress;
    }

    public void setMasterAddress(String masterAddress) {
        this.masterAddress = masterAddress;
    }

    public int getExpiringTime() {
        return expiringTime;
    }

    public void setExpiringTime(int expiringTime) {
        this.expiringTime = expiringTime;
    }

    public int getRingBufferSize() {
        return ringBufferSize;
    }

    public void setRingBufferSize(int ringBufferSize) {
        this.ringBufferSize = ringBufferSize;
    }

    public int getHeartbeatExpiringTime() {
        return heartbeatExpiringTime;
    }

    public void setHeartbeatExpiringTime(int heartbeatExpiringTime) {
        this.heartbeatExpiringTime = heartbeatExpiringTime;
    }
}
